/*
 * @Author: xiaosihan 
 * @Date: 2023-08-21 22:46:28 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2023-08-22 01:24:59
 */




import { autorun } from "mobx";
import { ReactNode, useEffect, useRef, useState } from "react";
import styles from "./toolGrid.module.less";
import gridSVG from "./grid.svg?raw";
import clsx from "clsx";
import { Tooltip } from "antd";

interface Iprops {
}


// 网格
export default function ToolGrid() {

    const dom = useRef<HTMLDivElement | null>(null);
    const [data, setData] = useState({});
    const [disable, setDisable] = useState(true);

    useEffect(() => {

    }, []);

    useEffect(() => autorun(() => {

    }), []);

    return (
        <Tooltip
            title="网格(ctrl+')"
            placement="bottom"
            mouseLeaveDelay={0}
            mouseEnterDelay={0.5}
        >
            <span
                className={clsx(styles.toolGrid, disable && styles.disable)}
                dangerouslySetInnerHTML={{ __html: gridSVG }}
            >

            </span>
        </Tooltip>
    );

}